home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light ROM 3
/
Light ROM 3 - Disc 2.iso
/
programs
/
amiga
/
dps
/
par252.lha
/
rexx
/
BlockChange.ddr
< prev
next >
Wrap
Text File
|
1994-08-16
|
1KB
|
68 lines
/* Export an anim and import it back. Uses currently selected file
Intended for new block limit.
Click on Done when it says "Transfering", to stop.
*/
Signal on Halt
Address DDR
if (~show('L','rexxsupport.library')) then
if ~addlib('rexxsupport.library',0,-30,0) then do
req 'rexxsupport.library fialed to open.'
exit
end
call ReadPrefs
Translate ON /* turn on file translation */
Exporter YUV /* file emulation is YUV */
Mode ANIM /* Import as anim */
Filter OFF /* no filter */
Options Results
Req 'Resize the selected anim?'
if result~=1 then exit
/* Figure out full path of currently selected anim */
File FULL
fname=result
/* Do it */
Frames
fr=result
i=1
n=1
out=1
do while exists(fname'.'n)
address command 'copy' fname'.'n fname'_new.'n
n=n+1
end
Done name'_new'
call RestorePrefs
exit
/* get misc prefs and restore them at exit */
ReadPrefs:
Mode
r_Mode=result
Filter
r_filter=result
Translate
r_Translate=result
Exporter
r_Exporter=result
return
Halt:
RestorePrefs:
Mode r_Mode
Filter r_filter
Translate r_Translate
Exporter r_Exporter
return